Initializes a new instance of the
ConcurrentDictionary<(Of <(TKey, TValue>)>)
class that is empty, has the specified concurrency level, has the specified initial capacity, and
uses the specified
IEqualityComparer<(Of <(TKey>)>).
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub New ( _
concurrencyLevel As Integer, _
capacity As Integer, _
comparer As IEqualityComparer(Of TKey) _
) |
C# |
---|
public ConcurrentDictionary(
int concurrencyLevel,
int capacity,
IEqualityComparer<TKey> comparer
) |
Exceptions
Exception | Condition |
---|
System..::.ArgumentOutOfRangeException |
concurrencyLevel is less than 1. -or-
capacity is less than 0.
|
System..::.ArgumentNullException | comparer is a null reference
(Nothing in Visual Basic). |
See Also